package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class ModuleQualifiedIdentifierColumnName implements ColumnReference {

    private int beginIndex;
    private int endIndex;
    private Identifier qualifiedIdentifier;
    private Identifier columnName;

    public ModuleQualifiedIdentifierColumnName(int beginIndex,
                                               Identifier qualifiedIdentifier,
                                               Identifier columnName) {
        this.beginIndex = beginIndex;
        this.endIndex = columnName.getEndIndex();
        this.qualifiedIdentifier = qualifiedIdentifier;
        this.columnName = columnName;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public Identifier getQualifiedIdentifier() {
        return qualifiedIdentifier;
    }

    public Identifier getColumnName() {
        return columnName;
    }

}
